home *** CD-ROM | disk | FTP | other *** search
/ Champak 123 / (Vol 123) Jan 13 2011.iso / Games / bread-cooking.swf / scripts / frame_84 / PlaceObject2_48_957 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Text File  |  2011-01-13  |  365b  |  20 lines

  1. onClipEvent(enterFrame){
  2.    if(_root.isGameOver)
  3.    {
  4.       return undefined;
  5.    }
  6.    if(this.hitTest(_root._xmouse,_root._ymouse,false))
  7.    {
  8.       if(state == 0 && _root.cursor.getState() == 3)
  9.       {
  10.          this.gotoAndStop(2);
  11.          state = 1;
  12.       }
  13.    }
  14.    else if(state == 1)
  15.    {
  16.       this.gotoAndStop(1);
  17.       state = 0;
  18.    }
  19. }
  20.